import { useLocation } from 'umi';
import { IframeMicro } from '@/components/IframeMicro';

export default function Page1() {
  const location  = useLocation(); // 这里应该改成 props.location 比较好

  return (
    <div style={{ height: 800, width: 500 }}>
      <IframeMicro activate={location.pathname.replace("/app2", "") === '/page4'} microApp="app2" path="/page4" />
    </div>
  );
}
